#ifndef _X_NET_SETVICE_H
#define _X_NET_SETVICE_H
#include "xService.h"
#include "xSocket.h"
#include "xAccepter.h"
namespace xNet
{
    NET_ENGINE_CORE_API class xNetService : public xService
    {
        public:
            xNetService(std::string strIp,uint16 wPort);
        public:  
            void Finish();
        public:
            virtual bool Init() override;
            virtual bool ServiceCallBack() override;
            virtual bool NewTCPTask(xSocket* socket) = 0;
        private:
            xAccepter m_accepter;
    };
}

#endif